/**
 * webapck的入口文件
 */
import data from './data.json';
import './main.less';
import icon from './images/icon.png';

// eslint-disable-next-line
console.log('hello webpack', data);

const xd = () => {
  // eslint-disable-next-line
  alert('你好，小滴课堂');
};
// eslint-disable-next-line
window.xd = xd;

const xdclass = new Promise((resolve) => {
  resolve();
  // eslint-disable-next-line
  console.log('promise执行了!!!');
});

// eslint-disable-next-line
console.log(xdclass);

// eslint-disable-next-line
const img = new Image();

img.src = icon;

// eslint-disable-next-line
document.body.append(img);
